<?php if(!defined('U_ADMIN')){exit;}?>
<!doctype html>
<html lang="zh-CN">
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
		<link rel="shortcut icon" href="/assets/images/logo.svg" type="image/x-icon" />
		<title>
			<?echo $this->title;?>
		</title>
		<link rel="shortcut icon" href="/assets/images/logo.svg" type="image/x-icon" />
		<link rel="stylesheet" href="/assets/css/app-light.css" id="lightTheme" disabled>
		<link rel="stylesheet" href="/assets/css/app-dark.css" id="darkTheme">
		<link rel="stylesheet" href="/assets/css/icons.css">
        <link rel="stylesheet" href="/assets/css/u.min.css">
		<style>
            div{font-family:myFirstFont;}
        </style>
		<script src="/assets/js/jquery.min.js"></script>
	</head>
	<body class="vertical light  ">
		<div class="wrapper">
			<nav class="topnav navbar navbar-light">
				<button type="button" class="navbar-toggler text-muted mt-2 p-0 mr-3 collapseSidebar">
					<i class="fe fe-menu navbar-toggler-icon"></i>
				</button>
				<ul class="nav">
                    <li class="nav-item">
                        <a class="nav-link text-muted my-2" href="/doc" data-toggle="tooltip" title="开发文档">
                            <i class="fe fe-file-text fe-16">
                            </i>
                        </a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link text-muted my-2" href="javascript:modal('set');" data-mode="light" data-toggle="tooltip" title="设置">
                            <i class="fe fe-settings fe-16">
                            </i>
                        </a>
                    </li>
					<li class="nav-item">
						<a class="nav-link text-muted my-2" href="javascript:;" id="modeSwitcher" data-mode="light" data-toggle="tooltip" title="开/关灯">
							<i class="fe fe-sun fe-16"></i>
						</a>
					</li>
                    <li class="nav-item">
                        <a class="nav-link text-muted my-2" href="/admin/index" data-toggle="tooltip" title="应用列表">
                            <i class="fe fe-grid fe-16"></i>
                        </a>
                    </li>
					<li class="nav-item dropdown">
						<a class="nav-link dropdown-toggle text-muted pr-0" href="#" id="admact" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
							<span class="avatar avatar-sm mt-2">
								<img src="/assets/avatars/face.jpg" class="avatar-img rounded-circle">
							</span>
						</a>
						<div class="dropdown-menu dropdown-menu-right" aria-labelledby="admact">
							<a class="dropdown-item" href="javascript:;" data-toggle="modal" data-target="#adm_cap">
								修改密码
							</a>
							<a class="dropdown-item" href="/admin/logout">
								退出登录
							</a>
						</div>
					</li>
				</ul>
			</nav>
			<aside class="sidebar-left border-right bg-white shadow" id="leftSidebar" data-simplebar>
				<a href="#" class="btn collapseSidebar toggle-btn d-lg-none text-muted ml-2 mt-3" data-toggle="toggle">
					<i class="fe fe-x">
						<span class="sr-only"></span>
					</i>
				</a>
				<nav class="vertnav navbar navbar-light">
					<div class="w-100 mb-2 d-flex">
						<a class="navbar-brand mx-auto mt-2 flex-fill text-center mb-0" href="/admin">
							<img src="/<?echo $this->app['app_logo'];?>" onerror="javascript:this.src='/assets/images/defaultapp.png';" style="width: 30px;">
							<p class="item-text mb-0 mt-2 h6"><?=$this->app['app_name']?></p>
						</a>

					</div>
					<div class="w-100">
						<ul class="navbar-nav flex-fill w-100 mb-2">
							<li class="nav-item w-100">
								<a class="nav-link" href="/admin/home">
									<i class="fe fe-home fe-16"></i>
									<span class="ml-3 item-text">
										总览
									</span>
								</a>
							</li>
						</ul>
						<p class="text-muted nav-heading mt-2 mb-1">
							<span>卡密</span>
						</p>
						<ul class="navbar-nav flex-fill w-100 mb-2">
							<li class="nav-item w-100">
								<a class="nav-link" href="/admin/kami_list">
									<i class="fe fe-credit-card fe-16"></i>
									<span class="ml-3 item-text">
										卡密管理
									</span>
								</a>
							</li>
							<li class="nav-item w-100">
								<a class="nav-link" href="/admin/kami_group">
									<i class="fe fe-sidebar fe-16"></i>
									<span class="ml-3 item-text">
										卡密分组
									</span>
								</a>
							</li>
						</ul>

						<p class="text-muted nav-heading mt-2 mb-1">
							<span>应用</span>
						</p>
						<ul class="navbar-nav flex-fill w-100 mb-2">
							<li class="nav-item w-100">
								<a class="nav-link" href="/admin/app">
									<i class="fe fe-box fe-16"></i>
									<span class="ml-3 item-text">
										应用设置
									</span>
								</a>
							</li>

							<li class="nav-item w-100">
								<a class="nav-link" href="/admin/smtp">
									<i class="fe fe-mail fe-16"></i>
									<span class="ml-3 item-text">
										发信设置
									</span>
								</a>
							</li>

							<li class="nav-item w-100">
								<a class="nav-link" href="/admin/ver">
									<i class="fe fe-git-commit fe-16"></i>
									<span class="ml-3 item-text">
										版本控制
									</span>
								</a>
							</li>
						</ul>

						<p class="text-muted nav-heading mt-2 mb-1">
							<span>系统</span>
						</p>
						<ul class="navbar-nav flex-fill w-100 mb-2">
							<li class="nav-item w-100">
								<a class="nav-link" href="/admin/logs">
									<i class="fe fe-coffee fe-16"></i>
									<span class="ml-3 item-text">
										运行日志
									</span>
								</a>
							</li>
							<li class="nav-item w-100">
								<a class="nav-link" href="/admin/set">
									<i class="fe fe-settings fe-16"></i>
									<span class="ml-3 item-text">
										系统设置
									</span>
								</a>
							</li>
						</ul>
					</div>
				</nav>
			</aside>

			<main role="main" class="main-content">
				<div class="container-fluid" id="div_container" hidden>
					<div class="row justify-content-center">
						<div class="col-12">
							<div class="row align-items-center mb-2">
								<div class="col">
									<h2 class="h5 page-title">
										<?echo $this->pName;?>
									</h2>
								</div>
								<div class="col-auto">
									<form class="form-inline">
										<div class="form-group">
											<a type="button" class="btn btn-sm" href="javascript:location.reload();">
												<span class="fe fe-refresh-ccw fe-16 text-muted"></span>
											</a>
										</div>
									</form>
								</div>
							</div>
